

$(document).ready(function () {
    $('#test').click(function () {
        //confirm ("Are you sre?");
        var base_url = $('body').data('baseurl');
        
        
        var img = base_url + "ajax-loader2.gif";
		$('#ajax_msg').html('<img src="' + img + '" />')
		
		$.ajax({
			type : "POST",
			url : base_url + "admin/utility/backup",
			dataType : "json",
			cache : false,
			success : function(data) {
				$("#ajax_msg").html(data.message).fadeIn('slow');
				alert ('Complete');
				window.location.replace(base_url + "admin/utility/backup");
				
			}

		});
		
    });
});
